package cn.edu.gdpt.mobile0123456789hwh0317;

import android.os.Bundle;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

    private TextView tvMainLine4;//1、定义全部变量
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();//3、调用控件初始化方法
        tvMainLine4.setText("阶前梧叶已秋声");
    }
    //2、定义界面控件初始化函数，通过findViewById函数获取界面控件
    private void initView() {
        tvMainLine4 = (TextView) findViewById(R.id.tvMainLine4);
    }
}